Install in five minutes
- Unzip this download. You need
zen-html-web-part.sppkgfrom the folder. - Open the SharePoint admin center, then More features > Apps > Open to reach your tenant App Catalog. (No catalog yet? SharePoint creates one the first time you open Apps.)
- Upload
zen-html-web-part.sppkgto Apps for SharePoint, tick Make this app available to all sites and choose Deploy. - Edit any modern page, choose + to add a web part, and pick Zen HTML Web Part from the Zen Systems group.
- Open the web part settings (pencil icon). Under Data source press Create the list on this site; the list is created with the right columns and sample items. Edit the items to make it yours.
Prefer PowerShell?
Connect-PnPOnline -Url https://<tenant>-admin.sharepoint.com -Interactive -ClientId <your PnP app id>
Add-PnPApp -Path .\zen-html-web-part.sppkg -Scope Tenant -Publish -SkipFeatureDeployment
Requirements: SharePoint Online (Microsoft 365). No custom scripts, no Microsoft Graph permissions and nothing for an administrator to approve beyond deploying the app.
A modern replacement for the classic Script Editor use case: paste your own HTML into a modern page and see it render. The markup is cleaned before rendering, so it stays safe and works without enabling custom scripts on the site.
Features
- Paste and publish. A large HTML editor in the property pane; the page updates as you type.
- Safe by design. Scripts, iframes, objects, forms, event handlers and
javascript:links are removed. - No custom scripts needed. Works with the SharePoint Online default (custom scripts off).
- Keeps your formatting. Headings, lists, tables, images, links and inline styles render as written.
- Tidy defaults. Unstyled HTML picks up clean heading, link, table and blockquote styles from the site theme.
- Optional title and card. Add a heading and show or hide a card frame around the content.
Settings
| Setting | What it does |
|---|---|
| Title (optional) | Heading shown above the content. |
| HTML | The markup to render. |
| Show card frame | Wraps the content in a white card. On by default. |
FAQ
Is this a replacement for the classic Script Editor web part? For adding formatted HTML, yes. It deliberately does not run JavaScript, which keeps pages safe and supported in modern SharePoint.
Do I need to enable custom scripts? No. The HTML is sanitised before it renders.
Can I embed a YouTube video or a form? Iframes and forms are removed for safety. Use the built-in Embed web part for those, or contact us for a vetted embed web part.
Need something custom?
Zen Systems builds SharePoint intranets, corporate and department home pages, custom master pages for SharePoint Server, and web parts made to your brief. Visit zensystems.in, use the contact page, or email enquiry@zensystems.in.